package com.etc.service;

import dev.langchain4j.service.SystemMessage;
import dev.langchain4j.service.UserMessage;
import dev.langchain4j.service.V;
import dev.langchain4j.service.spring.AiService;
import dev.langchain4j.service.spring.AiServiceWiringMode;
import reactor.core.publisher.Flux;

@AiService(
        // 手动配置
        wiringMode= AiServiceWiringMode.EXPLICIT,
        chatModel = "openAiChatModel",
        streamingChatModel = "openAiStreamingChatModel"
)
public interface Consultant05Service {

//    @SystemMessage("你是程序员小李，帅气心善技术牛")
    @SystemMessage(fromResource = "system_content.txt")
    Flux<String> chat(String question);

    @UserMessage("你是前端程序员小张，人美性格好！{{msg}}")
    Flux<String> call(@V("msg") String question);
}
